Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unecessary copy when reading arrow files #11840

Merged
merged 3 commits into from
Aug 8, 2024

Conversation

XiangpengHao
Copy link
Contributor

@XiangpengHao XiangpengHao commented Aug 6, 2024

Which issue does this PR close?

Part of #11752.

Rationale for this change

I'm pushing string-view to stable, and fixing some incoming breaking changes. Related arrow changes: apache/arrow-rs#6043

Specifically, I think we avoided some accidental copies by incooperating the changes from arrow

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Aug 6, 2024
@XiangpengHao XiangpengHao changed the title Fix some breaking changes from latest arrow-rs Avoid copy when creating arrow buffers Aug 6, 2024
decoder.read_dictionary(dict_block, &dict_result.into())?;
decoder.read_dictionary(
dict_block,
&Buffer::from_bytes(dict_result.into()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this was doing an implicit copy before

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @XiangpengHao

@alamb
Copy link
Contributor

alamb commented Aug 8, 2024

Merged up to resolve a conflict

@alamb alamb changed the title Avoid copy when creating arrow buffers Avoid unecessary copy when reading arrow files Aug 8, 2024
@alamb alamb merged commit 1c9583a into apache:main Aug 8, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants